package com.dingding.service.user.facade.order;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.facade.user.service.order.ITaxiGrabOrderFacade;
import com.dingding.order.dto.grab.PushTaxiGrabOrder;
import com.dingding.service.user.core.dao.ITaxiGrabOrderDao;

/**
 * 
 * @ClassName: TaxiGrabOrderFacadeImpl 
 * @Description: 出租车抢单操作服务实现类 
 * @author YHQ
 * @date 2016年6月30日 下午4:48:42
 * 
 */
@Component("taxiGrabOrderFacade")
public class TaxiGrabOrderFacadeImpl implements ITaxiGrabOrderFacade {

	@Resource(name="taxiGrabOrderDao")
	private ITaxiGrabOrderDao taxiGrabOrderDao;
	
	/**
	 * 
	 * @Title: getPushTaxiGrabOrder 
	 * @Description: 出租车抢单-获取通知内容
	 * @param placeOrderUserId 下单人Id
	 * @param grabOrderUserId 抢单人Id
	 * @author YHQ 
	 * @return PushTaxiGrabOrder    返回类型
	 * 
	 */
	public PushTaxiGrabOrder getPushTaxiGrabOrder(String placeOrderUserId, String grabOrderUserId){
		
		return taxiGrabOrderDao.getTaxiNoticeContent(placeOrderUserId, grabOrderUserId);
	}

	@Override
	public PushTaxiGrabOrder getPushTaxiDriverGrabOrder(String placeOrderUserId, String grabOrderUserId) {
		
		return taxiGrabOrderDao.getTaxiDriverNoticeContent(placeOrderUserId, grabOrderUserId);
	}
	
}
